package benchmark.energy.tx;

import benchmark.transaction.definition.AbstractTransaction;

import java.util.Arrays;
import java.util.List;

public class UpdateTemporalDataTx extends AbstractTransaction {
    private String entityId;
    private int startTime;
    private int endTime;
    private List<Float> values;

    public UpdateTemporalDataTx() {
        this.setTxType(TxType.TX_UPDATE_TEMPORAL_DATA);
    }

    public UpdateTemporalDataTx(String roadId, int startTime, int endTime, Float ... values ) {
        this.setTxType(TxType.TX_UPDATE_TEMPORAL_DATA);
        this.entityId = roadId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.values = Arrays.asList(values);
    }

    public String getEntityId() {
        return entityId;
    }

    public int getStartTime() {
        return startTime;
    }

    public int getEndTime() {
        return endTime;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public void setStartTime(int startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(int endTime) {
        this.endTime = endTime;
    }

    public List<Float> getValues() {
        return values;
    }

    public void setValues(List<Float> values) {
        this.values = values;
    }
}